package com.yf.zzmusic.pojo.vo.favoriteCount;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

/**
 * 时间: 2024年3月19日 14点28分
 * 关于用户收藏的歌单的分页列表查询
 *
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FavoriteCountOfMusicCollectVO {
  private Integer favoriteCountId;
  private Integer musicCollectId;
  private String name;
  private String cover;
  private String createUserNickname;
  private Integer createUserId;
  /** !!!注意!!! 这里的时间是收藏表的收藏时间 */
  private LocalDateTime createTimer;
  public Long getCreateTimer() {
    if (createTimer!=null){
      long timestamp = createTimer.toInstant(ZoneOffset.of("+8")).toEpochMilli();
      return timestamp;
    }else {
      return null;
    }
  }
  public void setCreateTimer(LocalDateTime createTimer) {
    this.createTimer = createTimer;
  }
}

